package com.dsr.dao;

import com.dsr.vo.FlowerVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author dsr
 * @since 2020-10-10
 */
public interface FlowerVoDao extends ElasticsearchRepository<FlowerVO,String> {
    List<FlowerVO> findByTitleOrDescriptionLike(String keyword);
    List<FlowerVO> findBySectionMatchesRegex(String keyword);

}
